package org.csu.code.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
@TableName("product")
public class Product {

    @TableId(value = "productid",type = IdType.INPUT)
    private int productId;
    @TableField(value = "category")
    private int categoryId;
    private String name;
    @TableField(value = "descn")
    private String description;
}
